package com.wteam.modules.system.repository;

import com.wteam.modules.system.domain.dto.CourseDTO;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;

import java.util.List;

public interface CourseEsRepository extends ElasticsearchRepository<CourseDTO,Long> {
    Page<CourseDTO> findByNameLikeAndTypeIdAndCreditBetweenAndCompulsoryTrue(
            String courseName,
            Long typeId,
            Double creditFrom,
            Double creditTo,
            Boolean compulsory,
            Pageable pageable
    );

//    Page<CourseDTO> findByNameLike(String courseName, Pageable pageable);
//
//    Page<CourseDTO> findByTypeId(Long creditTypeId,Pageable pageable);
//
//    Page<CourseDTO> findByCreditBetween(Double creditTo, Double creditFrom, Pageable pageable);
//
//    Page<CourseDTO>


}
